﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GroupForm.ascx.cs" Inherits="SalesManagement.Controls.List.GroupForm" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Hidden runat="server" ID="tempID" Text="">
</ext:Hidden>
<ext:Window ID="winDetails" runat="server" Title="Chi tiết Nhóm đối tượng" Frame="false"
    Hidden="true" Width="400" Height="250" Resizable="false" Modal="true" Layout="Fit"
    Icon="Group" Closable="true" Padding="5">
    <Items>
        <ext:FormPanel ID="FormWindow" runat="server" Frame="false" LabelWidth="80" BodyBorder="false"
            Border="false" MonitorValid="true" Layout="row" AutoHeight="true" BodyStyle="background-color:transparent;"
            Closable="true">
            <Defaults>
                <ext:Parameter Name="Anchor" Value="99%">
                </ext:Parameter>
            </Defaults>
            <Items>
                <ext:TextField ID="txtGroupName" runat="server" FieldLabel="Tên" AllowBlank="false" />
                <ext:NumberField runat="server" ID="txtFormula" FieldLabel="Công thức" MaxLength="12">
                </ext:NumberField>
                <ext:NumberField runat="server" ID="txtExtraFormula" FieldLabel="Phụ phí" MaxLength="12">
                </ext:NumberField>
                <ext:RadioGroup runat="server" FieldLabel="Loại">
                    <Items>
                        <ext:Radio ID="rdoWPrices" runat="server" BoxLabel="Giá sỉ" />
                        <ext:Radio ID="rdoRPrice" runat="server" BoxLabel="Giá lẽ" />
                    </Items>
                </ext:RadioGroup>
                <ext:TextArea ID="txtDescription" runat="server" FieldLabel="Ghi chú" AllowBlank="true"
                    AnchorHorizontal="100%" />
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="btnSave" runat="server" Text="Lưu" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click">
                    <EventMask ShowMask="true" Msg="Đang lưu..." MinDelay="1000" />
                </Click>
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Thoát" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
